package com.huan;

import com.huan.bean.ApplicationContext;
import com.huan.bean.MyApplicationContext;
import com.huan.service.UserService;

public class Test {
    public static void main(String[] args) {
        ApplicationContext context = new MyApplicationContext("com.huan");
        UserService bean = (UserService) context.getBean(UserService.class);
        System.out.println(bean);
        bean.add();
    }
}
